import javax.swing.*;

public class GameForm extends JFrame {
    GameForm(){
        GameJPanel gameJPanel = new GameJPanel();
        this.add(gameJPanel);
        this.addKeyListener(gameJPanel);

        Thread thread = new Thread(gameJPanel);
        thread.start();
        this.setSize(1350, 900);
        this.setVisible(true);
        this.setLocation(0, 0);
        this.setDefaultCloseOperation(3);
    }

}
